def process_data_gender(data):
    def format_gender(record):
        # 将性别字段转换为“男”或“女”
        items = list(record)
        gender_code = items[2]
        items[2] = '男' if gender_code == 1 else '女'
        return tuple(items)

    # 对每条记录进行处理
    return tuple(format_gender(record) for record in data)